﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ENG.PSSAirbusSoundExtender
{
  public class EButton
  {
    public string Name { get; set; }
    public System.Drawing.Rectangle Rectangle { get; set; }

    public EButton() { }

    public EButton(string name, System.Drawing.Rectangle rectangle)
    {
      this.Name = name;
      this.Rectangle = rectangle;
    }

    public bool IsIn (System.Drawing.Point point)
    {
      return (Rectangle.Contains(point));
    }
  }
}
